<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/11/25
 * Time: 9:40
 */

$txt = "My car is darkgrey...";
if (fnmatch("*gr[ae]y",$txt)) {
	echo "some form of gray ...";
}else{
	echo "fail";
}

$file = fopen("http://www.example.com","r");
$fpassthru = fpassthru( $file );
echo $fpassthru;